<template>
	<view class="left-box">
		<view :class="activename == item.id ? 'left-item-active' : 'left-item'" v-for="(item,index) in secondMenu"
			:key="index" @click="activeChange(item)">
			{{item.name}}
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {}
		},
		props: {
			secondMenu: {
				type: Array,
				default: []
			},
			activename: {
				type: [Number, String],
				default: 0
			},
			activeTopOneMenuName: {
				type: String,
				default: ''
			},
		},
		methods: {
			activeChange(item) {
				this.$emit('activeChange', item)
			}
		}
	}
</script>

<style lang="scss" scoped>
	.left-box {
		width: 100vw;
		display: flex;
		justify-content: center;
		align-items: center;
		padding: 72px 30px 47px;
		margin-bottom: 20px;

		.left-item {
			font-weight: 400;
			font-size: 54px;
			color: #A0A4B9;
			line-height: 78px;
			margin: 0 50px;
		}

		.left-item-active {
			font-weight: 700;
			font-size: 54px;
			color: #193F93;
			line-height: 78px;
			position: relative;
			margin: 0 50px;

			&::after {
				content: '';
				position: absolute;
				left: 50px;
				bottom: -29px;
				width: 116px;
				height: 0px;
				border: 3px solid #193F93;
			}
		}
	}
</style>